package com.hncu.Scanner;

import java.util.Scanner;

public class Demo1 {
    public static void main(String[] args) {
        Scanner in  = new Scanner(System.in);
        System.out.println("请输入一行字符串：");
        String line = in.nextLine();
        System.out.println("你输入的字符串是："+line);
    }
}
